package com.qf.commons.mybatis.config;

import com.qf.commons.mybatis.meta.DataMetaUpdate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author YaoJiXing
 * created 2022/8/17 20:34
 */
@Configuration
//配置Mybatis扫描com.qf下的所有包名为dao的包
@MapperScan("com.qf.**.dao")
@EnableTransactionManagement
public class MyBatisAutoConfiguration {


    //将返回对象交由Spring管理
    @Bean
    public DataMetaUpdate getDataMetaUpdate() {
        return new DataMetaUpdate();
    }


}
